package com.ouheng.shop.dao;

import com.ouheng.shop.domain.MemberDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

/**
 * 会员用户
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-09-04 10:39:38
 */
@Mapper
public interface MemberDao {

	MemberDO get(Long id);
	
	List<MemberDO> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(MemberDO member);
	
	int update(MemberDO member);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);
	
	int memberRelationCount(Long pmemberid);
	
	List<MemberDO> listMemberRelation(Map<String,Object> map);
	
	int listMemberRelationCount(Map<String,Object> map);
	
	int removeRelation(Long id);
	
}
